import fitz  # PyMuPDF
# pip install PyMuPDF

def pdf_to_txt(pdf_path, txt_path):
    doc = fitz.open(pdf_path)
    with open(txt_path, "w", encoding="utf-8") as txt_file:
        for page in doc:
            txt_file.write(page.get_text() + "\n")
    
pdf_to_txt("231669816346415104.pdf", "output.txt") 